
package com.jf.cloud.api.product.feign;

import com.jf.cloud.common.feign.FeignInsideAuthConfig;
import com.jf.cloud.common.response.ServerResponseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author zz
 * @date 2020/11/12
 */
@FeignClient(value = "jfcloud-product",contextId = "spuBrowse")
public interface SpuBrowseLogFeignClient {

    /**
     * 通过spuId需要搜索的商品
     * @param userId userId
     * @param shopId 店铺id
     * @return 浏览商品信息
     */
    @GetMapping(value = FeignInsideAuthConfig.FEIGN_URL_PREFIX + "/spuBrowse/recentBrowse")
    ServerResponseEntity<List<Long>> recentBrowse(@RequestParam("userId") Long userId,@RequestParam("shopId") Long shopId);

}
